<?php
class XA_Option {



	public static function get($name) {
		return xa::query("SELECT value FROM `option` WHERE option_id = '$name' LIMIT 1")->val();
	}



	public static function set($name, $value) {
		return xa::query("UPDATE `option` SET `value` = '".xa_db::esc($value)."' WHERE option_id = '$name' LIMIT 1");
	}
}
